package org.thinker.dao.board;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.thinker.common.AbstractDAO;
import org.thinker.util.MyCriteria;
import org.thinker.vo.BoardVO;

@Repository("boardDAO")
public class BoardDAOImpl extends AbstractDAO<BoardVO, Integer> implements BoardDAO{

	public BoardDAOImpl(){
		super.setNamespace("board");
	}

	@Override
	public List<BoardVO> getBoardList(MyCriteria cri) throws Exception {
		return (List<BoardVO>)getSqlMap().queryForList(namespace + ".list", cri);
	}

}
